package com.briup.sxau.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;

/*
 *实体类
 *@Data 生成get/set toString方法
 *@NoArgsConstructor   无参构造器
 *@AllArgsConstructor 全参构造器
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "t_student")
public class Student {
    @Id
    private int id;
    private String name;
    private String gender;
    private String tel;
    private String address;
    private String hobby;
}
